Adding focus support for Dynamic Top Layer
[baulk.git] / src / Baulk / CMakeLists.txt
blob91f1bda5dc94ce7353718ef01920b4fd8f2f8efa
1 ###| CMAKE Baulk |###
3 #| Project
4 project( baulk )
5 cmake_minimum_required( VERSION 2.6 )
7 subdirs(
8         Server
9         Control
13 #| Sources
14 set( SRCS
15         ./baulk.cpp
16         ./main.cpp
19 #| Headers
20 set( HDRS
21         ./baulk.h
24 #| Executable
25 set( EXEC
26         baulk
29 #| Library
30 set( LIB
31         BaulkLib
34 #| Baulk Common Libraries
35 include_directories(
36         ${PROJECT_SOURCE_DIR}/../Common
39 #| Baulk Information Server Libraries
40 include_directories( Server )
42 #| Misc Qt4
43 add_definitions( -Wall -ggdb )
44 find_package( Qt4 REQUIRED )
45 set( QT_USE_QTNETWORK 1 )
46 set( QT_USE_QTTEST 1 )
47 include( ${QT_USE_FILE} )
48 QT4_WRAP_CPP( MOC_SRCS ${HDRS} )
50 #| Create the Executable
51 add_executable( ${EXEC} ${SRCS} ${MOC_SRCS} )
52 set( EXECUTABLE_OUTPUT_PATH
53         ${PROJECT_BINARY_DIR}/../../bin
56 #| Library for Win32
57 if( WIN32 )
58         add_library( ${LIB} STATIC ${SRCS} ${MOC_SRCS} )
59 endif( WIN32 )
61 #| Link Needed Libraries
62 target_link_libraries( ${EXEC} 
63         ${QT_LIBRARIES} 
64         LibraryLoader   # From Common
65         BaulkClient     # From Server
66         BaulkWidget     # From Common