author | Tero Marttila <terom@fixme.fi> |
Sat, 17 Jan 2009 01:22:47 +0200 | |
changeset 404 | 7058ee22ee39 |
parent 397 | 13fa0546ef87 |
child 411 | 106aaf6eadfe |
permissions | -rw-r--r-- |
186 | 1 |
FILE(GLOB SOURCE_FILES "*.cc" "Network/*.cc") |
2 |
FILE(GLOB HEADER_FILES "*.hh" "Network/*.hh") |
|
0 | 3 |
|
397
13fa0546ef87
hopefully version stuff is now run properly on every make...
Tero Marttila <terom@fixme.fi>
parents:
186
diff
changeset
|
4 |
set_source_files_properties("version.c" PROPERTIES GENERATED true) |
13fa0546ef87
hopefully version stuff is now run properly on every make...
Tero Marttila <terom@fixme.fi>
parents:
186
diff
changeset
|
5 |
set(SOURCES ${SOURCE_FILES} ${HEADER_FILES} "version.c") |
0 | 6 |
|
7 |
# Generate config.h |
|
8 |
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" @ONLY) |
|
9 |
include_directories("${CMAKE_CURRENT_BINARY_DIR}") |
|
10 |
||
11 |
# Libraries |
|
12 |
||
185
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
13 |
# ClanLib 0.8 |
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
14 |
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
|
15 |
include_directories(${ClanLib_INCLUDE_DIRS}) |
25becd2cb026
that's not a prototype anymore... at least it shouldn't be
terom
parents:
119
diff
changeset
|
16 |
set(LIBS ${LIBS} ${ClanLib_LIBRARIES}) |
0 | 17 |
|
18 |
# Assumes the project generates only one executable. If you need more, you'll need to alter |
|
19 |
# the script and replace ${PROJECT_SHORT_NAME} by executable name. |
|
20 |
add_executable("${PROJECT_SHORT_NAME}" ${SOURCES}) |
|
21 |
target_link_libraries("${PROJECT_SHORT_NAME}" ${LIBS}) |
|
22 |
install(TARGETS "${PROJECT_SHORT_NAME}" DESTINATION bin) |
|
23 |
||
6 | 24 |