QTfrontend/CMakeLists.txt
changeset 8283 af97cdbb7713
parent 8279 c03d64969112
child 8304 620560c89284
child 8310 a98c349bc06b
equal deleted inserted replaced
8281:a1577759bf62 8283:af97cdbb7713
    93 endif(WIN32)
    93 endif(WIN32)
    94 
    94 
    95 if(MINGW)
    95 if(MINGW)
    96     # resource compilation for mingw
    96     # resource compilation for mingw
    97     add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o
    97     add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o
    98     COMMAND windres -I ${CMAKE_CURRENT_SOURCE_DIR}
    98                        COMMAND windres -I ${CMAKE_CURRENT_SOURCE_DIR}
    99     -i ${CMAKE_CURRENT_SOURCE_DIR}/hedgewars.rc
    99                                -i ${CMAKE_CURRENT_SOURCE_DIR}/hedgewars.rc
   100     -o ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o)
   100                                -o ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o)
   101     set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o)
   101     set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o)
   102 else(MINGW)
   102 else(MINGW)
   103     set(hwfr_src ${hwfr_src} hedgewars.rc)
   103     set(hwfr_src ${hwfr_src} hedgewars.rc)
   104 endif(MINGW)
   104 endif(MINGW)
   105 
   105 
   202         uuid
   202         uuid
   203         )
   203         )
   204 endif()
   204 endif()
   205 
   205 
   206 
   206 
   207 if (CROSSAPPLE)
   207 if (NOT CROSSAPPLE)
   208 
       
   209 else()
       
   210     target_link_libraries(hedgewars ${HW_LINK_LIBS})
   208     target_link_libraries(hedgewars ${HW_LINK_LIBS})
   211 endif()
   209 endif()
   212 
   210 
   213 
   211 
   214 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   212 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})