| 12345678910111213141516171819202122232425262728293031 |
- # Source files and their filters
- include(CMakeSources.cmake)
- file(GLOB BS_GENERATED_SCRIPT_H_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Generated/*.h)
- file(GLOB BS_GENERATED_SCRIPT_CPP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Generated/*.cpp)
- source_group("Generated" FILES ${BS_GENERATED_SCRIPT_H_FILES} ${BS_GENERATED_SCRIPT_CPP_FILES})
- # Target
- add_library(EditorScript OBJECT
- ${BS_EDITORSCRIPT_SRC}
- ${BS_GENERATED_SCRIPT_H_FILES}
- ${BS_GENERATED_SCRIPT_CPP_FILES})
- # Common flags
- add_common_flags(EditorScript)
-
- # Includes
- set(EditorScript_INC "./")
- target_include_directories(EditorScript PUBLIC ${EditorScript_INC})
-
- # Defines
- target_compile_definitions(EditorScript PUBLIC -DBS_SCR_BED_STATIC_LIB)
- # Libraries
- ## Local libs
- target_link_libraries(EditorScript bsfScript bsfMono EditorCore bsf)
- # IDE specific
- set_property(TARGET EditorScript PROPERTY FOLDER Script)
|