mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
61db9f43b8
* Replaced getoptplusplus with QCommandLineParser. Fixes #39 * enabling C++11 if possible * enabling C++11 if possible * fixed gcc compilation issues * fixed linux builds and improved os x build * trying to fix dispmanx * trying to fix dispmanx * simplified travis build script * fixed argumentparser default values * rewrote validator system and made sure default arguments are processed correctly * rewrote validator system and made sure default arguments are processed correctly * fixed bool vs. regular options * oops... removing debug code * reverted screenshot api change
43 lines
1.3 KiB
CMake
43 lines
1.3 KiB
CMake
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/commandline)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/commandline)
|
|
|
|
set(Parser_HEADERS
|
|
${CURRENT_HEADER_DIR}/ColorOption.h
|
|
${CURRENT_HEADER_DIR}/ColorsOption.h
|
|
${CURRENT_HEADER_DIR}/DoubleOption.h
|
|
${CURRENT_HEADER_DIR}/ImageOption.h
|
|
${CURRENT_HEADER_DIR}/IntOption.h
|
|
${CURRENT_HEADER_DIR}/Option.h
|
|
${CURRENT_HEADER_DIR}/Parser.h
|
|
${CURRENT_HEADER_DIR}/RegularExpressionOption.h
|
|
${CURRENT_HEADER_DIR}/SwitchOption.h
|
|
${CURRENT_HEADER_DIR}/ValidatorOption.h
|
|
${CURRENT_HEADER_DIR}/BooleanOption.h
|
|
)
|
|
|
|
set(Parser_SOURCES
|
|
${CURRENT_SOURCE_DIR}/ColorOption.cpp
|
|
${CURRENT_SOURCE_DIR}/ColorsOption.cpp
|
|
${CURRENT_SOURCE_DIR}/DoubleOption.cpp
|
|
${CURRENT_SOURCE_DIR}/ImageOption.cpp
|
|
${CURRENT_SOURCE_DIR}/IntOption.cpp
|
|
${CURRENT_SOURCE_DIR}/Option.cpp
|
|
${CURRENT_SOURCE_DIR}/Parser.cpp
|
|
${CURRENT_SOURCE_DIR}/RegularExpressionOption.cpp
|
|
${CURRENT_SOURCE_DIR}/SwitchOption.cpp
|
|
${CURRENT_SOURCE_DIR}/ValidatorOption.cpp
|
|
${CURRENT_SOURCE_DIR}/BooleanOption.cpp
|
|
)
|
|
|
|
add_library(commandline
|
|
${Parser_HEADERS}
|
|
${Parser_SOURCES}
|
|
)
|
|
|
|
qt5_use_modules(commandline Gui)
|
|
|
|
target_link_libraries(commandline
|
|
hyperion
|
|
)
|