| author | ekku |
| Tue, 09 Dec 2008 02:33:59 +0000 | |
| changeset 349 | ad6759185781 |
| parent 186 | 0738f2949a2b |
| child 397 | 13fa0546ef87 |
| permissions | -rw-r--r-- |
| 186 | 1 |
FILE(GLOB SOURCE_FILES "*.cc" "Network/*.cc") |
2 |
FILE(GLOB HEADER_FILES "*.hh" "Network/*.hh") |
|
| 0 | 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 |