Changeset 3eedfa6 in nscp for service


Ignore:
Timestamp:
11/12/09 23:32:23 (4 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
d05c3f0
Parents:
818b54e
Message:

fixed so we have a settings subsytem (ini files) which work on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/CMakeLists.txt

    r818b54e r3eedfa6  
    22   
    33PROJECT(NSCP) 
    4 SET(CMAKE_MODULE_PATH ${NSCP_SOURCE_DIR}) 
     4#SET(CMAKE_MODULE_PATH ${NSCP_SOURCE_DIR}) 
    55 
    66SET(VERSION_SERIES 0) 
     
    6262ENDIF(WIN32) 
    6363 
    64 find_package(Boost COMPONENTS system filesystem thread REQUIRED) 
     64#SET(CMAKE_MODULE_PATH "../cmake/") 
     65FIND_PACKAGE(Boost COMPONENTS system filesystem thread REQUIRED) 
    6566 
    6667#INCLUDE(../cmake/WtFindBoost.txt) 
    6768#INCLUDE(../cmake/WtFindAsio.txt) 
    6869INCLUDE(../cmake/WtFindSsl.txt) 
     70#INCLUDE(../cmake/FindICU.cmake) 
     71 
     72#IF(NOT WIN32) 
     73# FIND_PACKAGE(ICU REQUIRED) 
     74# IF(NOT ICU_FOUND) 
     75#   MESSAGE(FATAL_ERROR "ICU package not found..") 
     76# ELSE(NOT ICU_FOUND) 
     77#   ADD_DEFINITIONS( -DSI_CONVERT_ICU ) 
     78# ENDIF(NOT ICU_FOUND) 
     79#ENDIF(NOT WIN32) 
     80 
     81IF(NOT WIN32) 
     82  FIND_PACKAGE(Threads REQUIRED) 
     83  IF (NOT CMAKE_USE_PTHREADS_INIT) 
     84    message(FATAL_ERROR "Could not find POSIX threads") 
     85  ELSE (NOT CMAKE_USE_PTHREADS_INIT) 
     86    #add_definitions(-D_REENTRANT) 
     87  ENDIF (NOT CMAKE_USE_PTHREADS_INIT) 
     88  FIND_PACKAGE(Threads REQUIRED) 
     89ENDIF(NOT WIN32) 
     90 
     91 
    6992 
    7093# Boost is used nearly everywhere, so we can put these here 
     
    105128  ../include/NSCHelper.cpp 
    106129  ../include/arrayBuffer.cpp 
     130  ../include/simpleini/ConvertUTF.c 
    107131# ../include/ServiceCmd.cpp 
    108132  ../include/b64/b64.c 
     
    112136  ${Boost_FILESYSTEM_LIBRARY} 
    113137  ${Boost_LIBRARIES} 
     138  ${CMAKE_THREAD_LIBS_INIT} 
    114139  ${EXTRA_LIBS} 
    115140) 
Note: See TracChangeset for help on using the changeset viewer.