1 ###| CMAKE Baulk Control |###
4 project( BaulkControl )
5 cmake_minimum_required( VERSION 2.6 )
23 #| Baulk Common and Server Libraries
25 ${PROJECT_SOURCE_DIR}/../../Common
26 ${PROJECT_SOURCE_DIR}/../Server
30 add_definitions( -Wall )
31 find_package( Qt4 REQUIRED )
32 include( ${QT_USE_FILE} )
33 QT4_WRAP_CPP( MOC_SRCS ${HDRS} )
35 ###| Library Versioning
41 exec_program( ${cat_prog}
42 ARGS ${PROJECT_SOURCE_DIR}/../../Common/VERSION
43 OUTPUT_VARIABLE VERSION
50 add_library( ${LIB} SHARED ${SRCS} ${MOC_SRCS} )
51 set( LIBRARY_OUTPUT_PATH
52 ${PROJECT_BINARY_DIR}/../../../bin/BaulkLibs
54 set_target_properties( ${LIB} PROPERTIES VERSION ${LIBRARY_VERSION} )
56 #| Link Needed Libraries
57 target_link_libraries( ${LIB}
59 BaulkWidget # From Common
60 LibraryLoader # From Common