cmake_minimum_required(VERSION 2.6) SET(TREPS_COTS_INSTALL_DIR "@TREPS_COTS_INSTALL_DIR@") project(TREPS-CSLIMSERVER) set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE}) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "@TREPS_CMAKE_MODULES@") add_definitions(-DCSLIM_SERVER) find_package(LibXML2 REQUIRED) include_directories( @TREPS_FITNESSE_INSTALL_DIR@/cpputest/include @TREPS_FITNESSE_INSTALL_DIR@/cslim/include @TREPS_FILE_INSTALL_DIR@/include ${LIBXML2_INCLUDE_DIR} @TREPS_KERNEL_SRC@/src/Common @TREPS_KERNEL_SRC@/src/XMLManager ) add_library(CSlim STATIC IMPORTED) set_property(TARGET CSlim PROPERTY IMPORTED_LOCATION @TREPS_FITNESSE_INSTALL_DIR@/cslim/lib/libCSlim.a) add_library(CppUTest STATIC IMPORTED) set_property(TARGET CppUTest PROPERTY IMPORTED_LOCATION @TREPS_FITNESSE_INSTALL_DIR@/cpputest/lib/libCppUTest.a) add_library(CppUTestExt STATIC IMPORTED) set_property(TARGET CppUTestExt PROPERTY IMPORTED_LOCATION @TREPS_FITNESSE_INSTALL_DIR@/cpputest/lib/libCppUTestExt.a) link_directories( @TREPS_FILE_INSTALL_DIR@/lib ${LIBXML2_LIBRARIES} ) file( GLOB_RECURSE cslimserver_files src/* ) file( GLOB_RECURSE common_files @TREPS_KERNEL_SRC@/src/Common/* ) file( GLOB_RECURSE xmlmanager_files @TREPS_KERNEL_SRC@/src/XMLManager/* ) add_executable( treps_cslimserver ${common_files} ${xmlmanager_files} ${cslimserver_files} ) target_link_libraries( treps_cslimserver CSlim CppUTest CppUTestExt magic xml2 ) install(TARGETS treps_cslimserver DESTINATION @TREPS_INSTALL_DIR@/test/Fitnesse/)