#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # sources files set(SOURCE_FILES src/main.cpp ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) add_executable(usmunix ${SOURCE_FILES}) add_dependencies(usmunix kernel) set_target_properties(usmunix PROPERTIES OUTPUT_NAME scol) if (Scol_STATIC) list(REMOVE_DUPLICATES SCOL_LIBRARIES) message(STATUS "Scol static libs : ${SCOL_LIBRARIES}") target_link_libraries(usmunix kernel ${SCOL_LIBRARIES}) else() find_library(DL_LIBRARY NAMES dl dlsym) mark_as_advanced(DL_LIBRARY) if (DL_LIBRARY) target_link_libraries(usmunix dl) endif () endif() # install Scol usmunix scol_config_exe(usmunix)