mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
193f492b99
- Use EXCLUDE_FROM_ALL for FuzzyLite and GoogleTest to avoid inclusion of unneded headers and libraries into installers. - Set minimum CMake version only in main CMakeLists.txt - Set project name only in main CMakeLists.txt - Visual Studio: add assign_source_group function to generate proper filesystem tree - Visual Studio: set PROJECT_LABEL so generated projects have same names binaries on Windows - Visual Studio: enabled USE_FOLDERS for projects grouping. This also possibly affect other IDEs. - Added add_subdirectory_with_folder function to make sure 3rd-party libraries are affected by USE_FOLDERS.
17 lines
444 B
CMake
17 lines
444 B
CMake
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_CURRENT_SOURCE_DIRECTORY})
|
|
|
|
set(lib_SRCS
|
|
StdInc.cpp
|
|
ERMParser.cpp
|
|
ERMInterpreter.cpp
|
|
ERMScriptModule.cpp
|
|
)
|
|
|
|
add_library(vcmiERM SHARED ${lib_SRCS})
|
|
target_link_libraries(vcmiERM ${Boost_LIBRARIES})
|
|
|
|
set_target_properties(vcmiERM PROPERTIES ${PCH_PROPERTIES})
|
|
cotire(vcmiERM)
|
|
|
|
install(TARGETS vcmiERM DESTINATION ${SCRIPTING_LIB_DIR})
|