CMakeLists.txt.in
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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/)