diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-04-06 19:43:09 +0200 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-04-06 19:43:09 +0200 |
commit | dd7b6642a3b171734126b6b4a14236cfe6406fcf (patch) | |
tree | 6afd61aa059371fffc52bd6f3eb6f6b240e5a4e2 /mmc_updater/src/tests/CMakeLists.txt | |
parent | 482ad250a4454d993a98488edfe01d7f9dc35de7 (diff) | |
download | MultiMC-dd7b6642a3b171734126b6b4a14236cfe6406fcf.tar MultiMC-dd7b6642a3b171734126b6b4a14236cfe6406fcf.tar.gz MultiMC-dd7b6642a3b171734126b6b4a14236cfe6406fcf.tar.lz MultiMC-dd7b6642a3b171734126b6b4a14236cfe6406fcf.tar.xz MultiMC-dd7b6642a3b171734126b6b4a14236cfe6406fcf.zip |
Use the same style of CMake files everywhere
Diffstat (limited to 'mmc_updater/src/tests/CMakeLists.txt')
-rw-r--r-- | mmc_updater/src/tests/CMakeLists.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mmc_updater/src/tests/CMakeLists.txt b/mmc_updater/src/tests/CMakeLists.txt index 08501a98..5a96d7c9 100644 --- a/mmc_updater/src/tests/CMakeLists.txt +++ b/mmc_updater/src/tests/CMakeLists.txt @@ -1,8 +1,8 @@ include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..") -if (APPLE) - set(HELPER_SHARED_SOURCES ../StlSymbolsLeopard.cpp) +if(APPLE) + set(HELPER_SHARED_SOURCES ../StlSymbolsLeopard.cpp) endif() # # Create helper binaries for unit tests @@ -17,14 +17,14 @@ endif() # Install data files required by unit tests set(TEST_FILES - file_list.xml + file_list.xml ) foreach(TEST_FILE ${TEST_FILES}) - execute_process( - COMMAND - "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}" "${CMAKE_CURRENT_BINARY_DIR}" - ) + execute_process( + COMMAND + "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}" "${CMAKE_CURRENT_BINARY_DIR}" + ) endforeach() # Add unit test binaries @@ -32,13 +32,13 @@ macro(ADD_UPDATER_TEST CLASS) set(TEST_TARGET updater_${CLASS}) unset(srcs) list(APPEND srcs ${CLASS}.cpp) - if (WIN32) + if(WIN32) list(APPEND srcs ${CMAKE_CURRENT_SOURCE_DIR}/test.rc) endif() add_executable(${TEST_TARGET} ${srcs}) target_link_libraries(${TEST_TARGET} updatershared) add_test(NAME ${TEST_TARGET} COMMAND ${TEST_TARGET}) - if (APPLE) + if(APPLE) set_target_properties(${TEST_TARGET} PROPERTIES LINK_FLAGS "-framework Security -framework Cocoa") endif() endmacro() |