Home | History | Annotate | Download | only in execserver
      1 # ExecServer
      2 
      3 set(XSCORE_SRCS
      4 	xsDefs.cpp
      5 	xsDefs.hpp
      6 	xsExecutionServer.cpp
      7 	xsExecutionServer.hpp
      8 	xsPosixFileReader.cpp
      9 	xsPosixFileReader.hpp
     10 	xsPosixTestProcess.cpp
     11 	xsPosixTestProcess.hpp
     12 	xsProtocol.cpp
     13 	xsProtocol.hpp
     14 	xsTcpServer.cpp
     15 	xsTcpServer.hpp
     16 	xsTestDriver.cpp
     17 	xsTestDriver.hpp
     18 	xsTestProcess.cpp
     19 	xsTestProcess.hpp
     20 	)
     21 
     22 set(XSCORE_LIBS
     23 	decpp
     24 	deutil
     25 	dethread
     26 	debase
     27 	)
     28 
     29 if (DE_OS_IS_WIN32)
     30 	set(XSCORE_SRCS
     31 		${XSCORE_SRCS}
     32 		xsWin32TestProcess.cpp
     33 		xsWin32TestProcess.hpp)
     34 endif ()
     35 
     36 add_library(xscore STATIC ${XSCORE_SRCS})
     37 target_link_libraries(xscore ${XSCORE_LIBS})
     38 
     39 include_directories(.)
     40 
     41 if (DE_OS_IS_WIN32 OR DE_OS_IS_OSX OR DE_OS_IS_UNIX)
     42 	# Build standalone execserver binary
     43 	add_executable(execserver tools/xsMain.cpp)
     44 	target_link_libraries(execserver xscore)
     45 
     46 	# Tests
     47 	add_executable(execserver-test tools/xsTest.cpp)
     48 	target_link_libraries(execserver-test xscore)
     49 	add_dependencies(execserver-test execserver)
     50 
     51 	# Basic client
     52 	add_executable(execserver-client tools/xsClient.cpp)
     53 	target_link_libraries(execserver-client xscore)
     54 endif ()
     55