CMakeLists.txt (1238B)
1 set(binaries 2 "supervisor" 3 "test_learning" 4 "test_serialization" 5 "view_ctl" 6 ) 7 8 set(supervisor_LINK ${SQLITE3_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SERIALIZATION_LIBRARY}) 9 set(supervisor_SRC "supervisor.cpp" "data_set.cpp" "factory.cpp" "model.cpp") 10 11 set(test_learning_LINK ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}) 12 set(test_learning_SRC "test/learning.cpp" "data_set.cpp" "factory.cpp" "model.cpp") 13 14 set(test_serialization_LINK ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_SERIALIZATION_LIBRARY}) 15 set(test_serialization_SRC "test/serialization.cpp") 16 17 set(view_ctl_LINK ${SQLITE3_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SERIALIZATION_LIBRARY}) 18 set(view_ctl_SRC "view_ctl.cpp" "factory.cpp") 19 20 include_directories(${Boost_INCLUDE_DIRS} ${WALFU_INCLUDE_DIRS} ${SQLITE3_INCLUDE_DIRS}) 21 link_directories(${Boost_LIBRARY_DIRS} ${WALFU_LIBRARY_DIRS} ${SQLITE3_LIBRARY_DIRS}) 22 23 set(nmlp_SRC_DEPS ${WALFU_DIR}/nmlp/Kernels_nmlp.cu) 24 set(nmlp_LINK_DEPS lib_nmlp lib_core ${CUDA_CUBLAS_LIBRARIES} ${CUDA_LIBRARIES}) 25 26 foreach(binary ${binaries}) 27 cuda_add_executable(${binary} ${nmlp_SRC_DEPS} ${${binary}_SRC}) 28 target_link_libraries(${binary} ${nmlp_LINK_DEPS} ${${binary}_LINK}) 29 endforeach(binary)