File: CMakeLists.txt

package info (click to toggle)
indigo 1.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,788 kB
  • ctags: 43,825
  • sloc: ansic: 309,179; cpp: 112,400; cs: 8,446; asm: 8,011; java: 6,652; sql: 6,647; xml: 3,397; python: 3,339; sh: 207; makefile: 158; php: 48
file content (22 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PROJECT(Layout)

file (GLOB Layout_src src/*.c src/*.cpp)
file (GLOB Layout_headers *.h* src/*.h* src/*.inc)

include_directories(${Common_SOURCE_DIR} ${Common_SOURCE_DIR}/..)

if(APPLE)
    set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
endif()

add_library(layout ${Layout_src} ${Layout_headers})

if(VISIBILITY_HIDDEN)
    SET(COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden")
endif()    
if(UNIX OR APPLE)
    SET(COMPILE_FLAGS "${COMPILE_FLAGS} -fPIC")
endif()
set_target_properties(layout PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS}")    
target_link_libraries(layout molecule)
pack_static(layout)