File: CMakeLists.txt

package info (click to toggle)
grcompiler 5.2.1-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,968 kB
  • sloc: cpp: 48,199; ansic: 7,670; sh: 4,427; makefile: 197; xml: 190; perl: 127; sed: 21
file content (12 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
project(generic)
if  (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
    find_package(Iconv)
endif()

add_library(generic STATIC Platform.cpp)
target_compile_definitions(generic PUBLIC $<${BIGENDIAN_SYSTEM}:WORDS_BIGENDIAN>)
add_definitions(-DGR_NAMESPACE)

if (Iconv_FOUND)
    target_link_libraries(generic ${Iconv_LIBRARY})
endif()