| summaryrefslogtreecommitdiff |
path: root/CMakeLists.txt
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-04-22 22:24:06 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-04-22 22:24:06 +0200 |
| commit | 7c321d614e8d91b23434b13bfcf89274797815ec (patch) | |
| tree | 58b8e4fcba63b38a052423401df413606a7e8076 /CMakeLists.txt | |
Initial Commit.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4540388 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.0 FATAL_ERROR) + +project("JabberHive - IRC Gateway") + +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules/") + +include(FindPkgConfig) +include(FindPkgConfig) + +add_subdirectory(src) +add_definitions(-D_POSIX_SOURCE) +add_definitions(-D_POSIX_C_SOURCE=200809L) +find_package(LibIRCClient REQUIRED) + +if(CMAKE_COMPILER_IS_GNUCC) + set(CMAKE_C_FLAGS "-g -Wall -Wpedantic -Wconversion") + #message(STATUS "GNUCC detected. Adding '-O3' parameter.") + #set(CMAKE_C_FLAGS "-O2") +endif() + +# ${SRC_FILES} is recursively defined in the subdirectories. +# Each subdirectory only adds the source files that are present at its level. +add_executable(jabberhive-irc ${SRC_FILES}) +set_property(TARGET jabberhive-irc PROPERTY C_STANDARD 99) +set_property(TARGET jabberhive-irc PROPERTY C_STANDARD_REQUIRED ON) +target_link_libraries(jabberhive-irc ${LibIRCClient_LIBRARIES}) + +## OPTION HANDLING ############################################################# +# TODO |


