2018-05-07 13:27:50 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
2018-05-17 21:46:14 +02:00
|
|
|
aux_source_directory("layer-widget" SUB_SOURCES)
|
|
|
|
set(SOURCE "main.c" "gdsparse.c" "layer-selector.c")
|
|
|
|
|
|
|
|
|
|
|
|
set(SOURCE
|
|
|
|
${SOURCE}
|
|
|
|
${SUB_SOURCES}
|
|
|
|
)
|
|
|
|
|
2018-05-07 15:57:47 +02:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_search_module(GLIB REQUIRED glib-2.0)
|
2018-05-08 15:00:37 +02:00
|
|
|
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
|
2018-05-07 15:57:47 +02:00
|
|
|
|
2018-05-17 21:46:14 +02:00
|
|
|
include_directories(${GLIB_INCLUDE_DIRS} ${GTK3_INCLUDE_DIRS} "layer-widget")
|
2018-05-08 15:00:37 +02:00
|
|
|
link_directories(${GLIB_LINK_DIRS} ${GTK3_LINK_DIRS})
|
|
|
|
configure_file(glade/main.glade glade/main.glade COPYONLY)
|
2018-05-16 16:20:09 +02:00
|
|
|
configure_file(glade/layer-widget.glade glade/layer-widget.glade COPYONLY)
|
2018-05-07 15:57:47 +02:00
|
|
|
|
2018-05-07 13:27:50 +02:00
|
|
|
project(gds-render)
|
2018-05-17 21:46:14 +02:00
|
|
|
add_executable(${PROJECT_NAME} ${SOURCE})
|
2018-05-08 15:00:37 +02:00
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} ${GLIB_LDFLAGS} ${GTK3_LDFLAGS} m)
|