#------------------------------------------------------------------- # This file is part of the CMake build system for SKYX # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # Configure SkyX demo1 build set(SOURCE_FILES src/main.cpp ) # Add static flag if needed if(SKYX_STATIC) add_definitions(-DSKYX_STATIC_LIB) endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${OIS_INCLUDE_DIR}) add_executable(demo1 ${SOURCE_FILES}) target_link_libraries(demo1 ${SKYX_LIBRARIES} ${OIS_LIBRARY}) # Install sample sources if (SKYX_INSTALL_SAMPLES) skyx_install_target(demo1 "") if (SKYX_INSTALL_PDB) # install debug pdb files install(FILES ${SKYX_BINARY_DIR}/bin${SKYX_DEBUG_PATH}/demo1.pdb DESTINATION bin${SKYX_DEBUG_PATH} CONFIGURATIONS Debug ) install(FILES ${SKYX_BINARY_DIR}/bin${SKYX_RELWDBG_PATH}/demo1.pdb DESTINATION bin${SKYX_RELWDBG_PATH} CONFIGURATIONS RelWithDebInfo ) endif () endif ()