author | terom |
Wed, 03 Dec 2008 19:16:32 +0000 | |
changeset 185 | 25becd2cb026 |
parent 119 | 7dceed9a7f93 |
child 186 | 0738f2949a2b |
permissions | -rw-r--r-- |
0 | 1 |
FILE(GLOB SOURCE_FILES "*.cc") |
2 |
FILE(GLOB HEADER_FILES "*.hh") |
|
3 |
||
4 |
set(SOURCES ${SOURCE_FILES} ${HEADER_FILES}) |
|
5 |
||
6 |
# Generate config.h |
|
7 |
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" @ONLY) |
|
8 |
include_directories("${CMAKE_CURRENT_BINARY_DIR}") |
|
9 |
||
10 |
# Libraries |
|
11 |
||
185
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
12 |
# ClanLib 0.8 |
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
13 |
find_package(ClanLib 0.8 REQUIRED COMPONENTS Core App Signals Display GL Sound Network) |
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
14 |
include_directories(${ClanLib_INCLUDE_DIRS}) |
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
15 |
set(LIBS ${LIBS} ${ClanLib_LIBRARIES}) |
0 | 16 |
|
17 |
# Assumes the project generates only one executable. If you need more, you'll need to alter |
|
18 |
# the script and replace ${PROJECT_SHORT_NAME} by executable name. |
|
19 |
add_executable("${PROJECT_SHORT_NAME}" ${SOURCES}) |
|
20 |
target_link_libraries("${PROJECT_SHORT_NAME}" ${LIBS}) |
|
21 |
install(TARGETS "${PROJECT_SHORT_NAME}" DESTINATION bin) |
|
22 |
||
6 | 23 |