rearranging the commands into their own directory
[gssweb.git] / json_gssapi / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2
3 project(json_gssapi)
4
5 include_directories(src/)
6
7 add_executable(json_gssapi src/datamodel/GSSName.cpp
8                            src/datamodel/GSSOID.cpp
9                            src/datamodel/GSSOIDSet.cpp
10                            src/datamodel/GSSBuffer.cpp
11                            src/datamodel/GSSCredential.cpp
12                            src/GSSException.cpp
13                            src/commands/GSSGetMic.cpp
14                            src/commands/GSSCreateSecContextCommand.cpp
15                            src/commands/GSSCommand.cpp 
16                            src/commands/GSSImportName.cpp
17                            src/commands/GSSAcquireCred.cpp 
18                            src/commands/GSSPseudoRandom.cpp
19                            src/commands/GSSWrap.cpp  
20                            src/commands/GSSUnwrap.cpp
21                            src/util_json.cpp 
22                            main.cpp)
23 target_link_libraries(json_gssapi gssapi_krb5 jansson)
24
25
26 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
27 FIND_PACKAGE(CPPUNIT REQUIRED)
28
29 install(TARGETS json_gssapi RUNTIME DESTINATION bin)
30
31 add_subdirectory(src)
32
33 add_subdirectory(test)