-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (25 loc) · 754 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (25 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PROJECT(SIMON C)
cmake_minimum_required(VERSION 2.6)
find_package( PkgConfig REQUIRED )
#set(CMAKE_C_FLAGS "-g -Wall")
IF((NOT DEFINED CMAKE_C_FLAGS) OR (CMAKE_C_FLAGS STREQUAL ""))
SET (CMAKE_C_FLAGS "-Os -Wall -g")
ENDIF()
# External packages we need
pkg_check_modules (Libgtop2 libgtop-2.0)
pkg_check_modules (GTK2 gtk+-2.0)
pkg_check_modules (GOBJECT gobject-2.0)
link_directories (
${GTK2_LIBRARY_DIRS}
${GOBJECT_LIBRARY_DIRS}
${Libgtop2_LIBRARY_DIRS}
)
include_directories (
${GTK2_INCLUDE_DIRS}
${GOBJECT_INCLUDE_DIRS}
${Libgtop2_INCLUDE_DIRS}
$(SIMON_SOURCE_DIR)/src/
)
add_subdirectory(src)
add_executable(simon ${simonSources} )
target_link_libraries(simon ${GTK2_LIBRARIES} ${GOBJECT_LIBRARIES} ${Libgtop2_LIBRARIES} m)