Ticket #23556: patch-file-extension.diff
File patch-file-extension.diff, 1.8 KB (added by pepijndevos@…, 15 years ago) |
---|
-
AI/Interfaces/C/CMakeLists.txt
46 46 47 47 # Compile the library 48 48 add_library(${myTarget} MODULE ${mySources} ${additionalSources}) 49 FixLibName(${myTarget}) 50 49 51 target_link_libraries(${myTarget} ${additionalLibraries}) 50 52 set_target_properties(${myTarget} PROPERTIES COMPILE_FLAGS "${additionalCompileFlags}") 51 53 set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME "SkirmishAI") … … 99 101 100 102 aux_source_directory(${mySourceDir} mySources) 101 103 add_library(${myTarget} MODULE ${mySources} ${ai_common_SRC} ${CUtils_SRC}) 104 FixLibName(${myTarget}) 105 102 106 set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME "AIInterface") 103 107 104 108 # Install the data files -
AI/Interfaces/Java/CMakeLists.txt
327 327 endif (MINGW) 328 328 include_directories(BEFORE ${rts}/lib/streflop) 329 329 add_library(${myTarget} MODULE ${myNativeSources} ${ai_common_SRC} ${CUtils_SRC}) 330 FixLibName(${myTarget}) 330 331 target_link_libraries(${myTarget} streflop) 331 332 set_target_properties(${myTarget} PROPERTIES COMPILE_FLAGS "-DUSING_STREFLOP") 332 333 set_target_properties(${myTarget} PROPERTIES OUTPUT_NAME "AIInterface") -
CMakeLists.txt
2 2 cmake_minimum_required(VERSION 2.6) 3 3 project(Spring) 4 4 5 # This is needed, as CMake, or at least soem versions of it (eg. 2.8), 6 # falsely use the ".so" suffix unde Mac OS X for MODULE's 7 macro (FixLibName targetName) 8 IF (UNIX) 9 SET_TARGET_PROPERTIES(${targetName} PROPERTIES PREFIX "lib") 10 IF (APPLE) 11 SET_TARGET_PROPERTIES(${targetName} PROPERTIES SUFFIX ".dylib") 12 ENDIF (APPLE) 13 ENDIF (UNIX) 14 endmacro (FixLibName targetName) 15 5 16 LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/rts/build/cmake") 6 17 7 18 ### Install path (relative to CMAKE_INSTALL_PREFIX)