zint/frontend/CMakeLists.txt

28 lines
679 B
CMake
Raw Normal View History

2008-09-19 02:44:52 +12:00
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
project(zint_frontend)
include(CheckFunctionExists)
check_function_exists(getopt HAVE_GETOPT)
set(zint_frontend_SRCS main.c)
if(NOT HAVE_GETOPT)
set(zint_frontend_SRCS ${zint_frontend_SRCS} getopt.c getopt1.c)
endif(NOT HAVE_GETOPT)
2008-09-19 02:44:52 +12:00
2008-09-27 00:11:43 +12:00
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend")
2008-09-19 02:44:52 +12:00
add_executable(zint_frontend ${zint_frontend_SRCS})
2008-09-24 20:59:39 +12:00
set_target_properties(zint_frontend PROPERTIES OUTPUT_NAME "zint")
2008-09-19 02:44:52 +12:00
add_dependencies(zint_frontend zint)
2008-09-27 00:11:43 +12:00
link_directories( "${CMAKE_BINARY_DIR}/backend" )
2008-09-19 02:44:52 +12:00
target_link_libraries(zint_frontend zint)
install(TARGETS zint_frontend DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)