dc94728628
tl-dr: view the Build directory to see. This is intended to replace the project files that we presently maintain so that only a single set is needed instead of multiples. The following setups were used for testing: * Windows 8 and Visual Studio 2013 Desktop Express * Windows 7 and Visual Studio 2012 * Mac OS X Mavericks and Xcode * Ubuntu and makefiles * Fedora 21 and makefiles All three operating systems can generate projects, compile, link, and run. Windows and Mac OS X users will find their compiled binary in the same location as before, but Linux users will be surprised: it goes straight into the root directory, along with a symlinked GtkModules.so as appropriate. There is no more need for a manual symlinking step. Known issues: * At this time, MinGW likely does not work. Extra time will be needed. * The WITH_JPEG option may go away, and we'll just always require it. * Some linux libraries can use the system equivalents, but that is not up yet. For more information, check out the Build directory.
31 lines
756 B
CMake
31 lines
756 B
CMake
list(APPEND JSON_SRC
|
|
"jsoncpp/src/lib_json/json_reader.cpp"
|
|
"jsoncpp/src/lib_json/json_value.cpp"
|
|
"jsoncpp/src/lib_json/json_writer.cpp"
|
|
)
|
|
|
|
list(APPEND JSON_HPP
|
|
"jsoncpp/include/json/config.h"
|
|
"jsoncpp/include/json/features.h"
|
|
"jsoncpp/include/json/forwards.h"
|
|
"jsoncpp/include/json/json.h"
|
|
"jsoncpp/include/json/reader.h"
|
|
"jsoncpp/include/json/value.h"
|
|
"jsoncpp/include/json/writer.h"
|
|
)
|
|
|
|
source_group("" FILES ${JSON_SRC} ${JSON_HPP})
|
|
|
|
add_library("jsoncpp" ${JSON_SRC} ${JSON_HPP})
|
|
|
|
set_property(TARGET "jsoncpp" PROPERTY FOLDER "External Libraries")
|
|
|
|
if(MSVC)
|
|
sm_add_compile_definition("jsoncpp" _CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
disable_project_warnings("jsoncpp")
|
|
|
|
target_include_directories("jsoncpp" PUBLIC "jsoncpp/include")
|
|
|