Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
1 | ############################################################# | 1 | ############################################################# | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | ADD_DEFINITIONS(-DTEST_DATA_DIR="${TEST_DATA_DIR}") | 3 | ADD_DEFINITIONS(-DTEST_DATA_DIR="${TEST_DATA_DIR}") | ||
4 | ADD_DEFINITIONS(-DMARBLE_SRC_DIR="${CMAKE_SOURCE_DIR}") | 4 | ADD_DEFINITIONS(-DMARBLE_SRC_DIR="${CMAKE_SOURCE_DIR}") | ||
5 | 5 | | |||
6 | ############################################################# | 6 | ############################################################# | ||
7 | # libraries | 7 | # libraries | ||
8 | 8 | | |||
9 | # because of htonl | 9 | # because of htonl | ||
10 | IF (WIN32) | 10 | IF (WIN32) | ||
11 | SET(PLATFORM_LIBRARIES wsock32) | 11 | SET(PLATFORM_LIBRARIES wsock32) | ||
12 | ENDIF (WIN32) | 12 | ENDIF (WIN32) | ||
13 | 13 | | |||
14 | # Since the tests are not actually installed, but rather | 14 | # Since the tests are not actually installed, but rather | ||
15 | # run directly from the build/src/tests dir we need to | 15 | # run directly from the build/src/tests dir we need to | ||
16 | # ensure the marble libs can be found. | 16 | # ensure the marble libs can be found. | ||
17 | IF (APPLE) | 17 | IF (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
18 | # For Mac OS X, the executable must be at the root of the bundle's executable folder | 18 | # For Mac OS X, the executable must be at the root of the bundle's executable folder | ||
19 | SET (CMAKE_INSTALL_NAME_DIR @executable_path/../lib) | 19 | SET (CMAKE_INSTALL_NAME_DIR @executable_path/../lib) | ||
20 | ENDIF (APPLE) | 20 | ENDIF (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
21 | 21 | | |||
22 | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) | 22 | set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) | ||
23 | 23 | | |||
24 | ############################################################# | 24 | ############################################################# | ||
25 | # includes | 25 | # includes | ||
26 | 26 | | |||
27 | ############################################################# | 27 | ############################################################# | ||
28 | # Make the current test source directory available in #define TESTSRCDIR | 28 | # Make the current test source directory available in #define TESTSRCDIR | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |