Changeset 301 in pacpusframework for trunk/cmake
- Timestamp:
- Apr 8, 2014, 10:03:01 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 build 2 CMakeLists.txt.user*
-
- Property svn:ignore
-
trunk/cmake/PacpusDependencies.cmake
r285 r301 123 123 list(APPEND PACPUS_DEPENDENCIES_LIB ${Boost_LIBRARIES}) 124 124 endif() 125 125 126 if(PACPUS_USE_LOG) 126 127 find_package(Boost 1.54.0 REQUIRED … … 130 131 log_setup # log 131 132 ) 132 include_directories(${Boost_INCLUDE_DIRS}) 133 link_directories(${Boost_LIBRARY_DIRS}) 133 list(APPEND PACPUS_DEPENDENCIES_INC ${Boost_INCLUDE_DIRS}) 134 list(APPEND PACPUS_DEPENDENCIES_LIB ${Boost_LIBRARIES}) 135 endif() 136 if(PACPUS_BUILD_TESTS) 137 find_package(Boost 1.21.0 REQUIRED 138 COMPONENTS 139 unit_test_framework 140 ) 134 141 list(APPEND PACPUS_DEPENDENCIES_INC ${Boost_INCLUDE_DIRS}) 135 142 list(APPEND PACPUS_DEPENDENCIES_LIB ${Boost_LIBRARIES}) -
trunk/cmake/PacpusUtilities.cmake
r267 r301 378 378 endfunction() 379 379 380 ################################################################################ 381 # pacpus_add_test_executable(TEST_NAME SOURCES) 382 function(pacpus_add_test_executable TEST_NAME) 383 set(SOURCES ${ARGN}) 384 if(DEBUG) 385 message(STATUS "SOURCES = ${SOURCES}") 386 endif() 387 set(EXE_NAME ${TEST_NAME}) 388 pacpus_add_executable(${EXE_NAME} ${SOURCES}) 389 add_test( 390 NAME ${TEST_NAME} 391 WORKING_DIRECTORY ${PACPUS_INSTALL_DIR}/bin 392 COMMAND ${EXE_NAME} 393 ) 394 set_target_properties(${TEST_NAME} PROPERTIES FOLDER "tests") 395 target_link_libraries(${EXE_NAME} 396 ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} 397 ${PACPUS_LIBRARIES} 398 ${PACPUS_DEPENDENCIES_LIB} 399 #${QT_LIBRARIES} 400 ) 401 endfunction() 402 380 403 # ======================================== 381 404 # Get sub directories
Note:
See TracChangeset
for help on using the changeset viewer.