src/proto2/CMakeLists.txt
changeset 8 2de58a6d0395
parent 6 faa4e777cc6e
child 10 78d81d5c2d61
equal deleted inserted replaced
7:61ac44ae0fe6 8:2de58a6d0395
    20 include_directories(${ClanLib_INCLUDE_DIRS})
    20 include_directories(${ClanLib_INCLUDE_DIRS})
    21 set(LIBS ${LIBS} ${ClanLib_LIBRARIES})
    21 set(LIBS ${LIBS} ${ClanLib_LIBRARIES})
    22 
    22 
    23 # Assumes the project generates only one executable. If you need more, you'll need to alter
    23 # Assumes the project generates only one executable. If you need more, you'll need to alter
    24 # the script and replace ${PROJECT_SHORT_NAME} by executable name.
    24 # the script and replace ${PROJECT_SHORT_NAME} by executable name.
    25 add_executable("${PROJECT_SHORT_NAME}/proto2" ${SOURCES})
    25 add_executable("${PROJECT_SHORT_NAME}-p2" ${SOURCES})
    26 target_link_libraries("${PROJECT_SHORT_NAME}/proto2" ${LIBS})
    26 target_link_libraries("${PROJECT_SHORT_NAME}-p2" ${LIBS})
    27 install(TARGETS "${PROJECT_SHORT_NAME}/proto2" DESTINATION bin)
    27 install(TARGETS "${PROJECT_SHORT_NAME}-p2" DESTINATION bin)
    28 
    28 
    29 
    29