From 2c5b104b82cf33cde0428e9b014cc6faaa3d18f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sun, 1 Apr 2018 16:29:21 +0200 Subject: [PATCH] C++ only project. --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2d6084..b61697e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ # along with this program. If not, see . cmake_minimum_required(VERSION 2.8) -project(NeoComm) +project(NeoComm CXX) # Binary filename set(TARGET_NAME "neocomm") @@ -40,8 +40,6 @@ include_directories( # Define files set(SRCS - src/channel.cpp - src/message.cpp src/node.cpp) set(HDRS @@ -64,6 +62,12 @@ else() add_definitions(-DNDEBUG) endif() +if(WIN32) + add_definitions(-DWOE32) +elseif(UNIX) + add_definitions(-DUNIX) +endif() + # Create the executable if(${BUILD_SHARED_LIB}) add_library(${TARGET_NAME} SHARED ${SRCS})